package com.version.manager.controller.shop;

import com.version.manager.controller.BaseController;
import com.version.manager.entity.Shop.shopGoodsSize;
import com.version.manager.model.Msg;
import com.version.manager.service.Shop.ShopGoodsSizeService;
import com.version.manager.service.Shop.shopGoodsColorService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(value = "shopGoodsColorController")
@RequestMapping("/api/shop/shopGoodsSize")
public class shopGoodsSizeController extends BaseController<ShopGoodsSizeService, shopGoodsSize> {
    @Autowired
    private ShopGoodsSizeService service;
    @GetMapping("getSize")
    @ResponseBody
    public Msg getColor(String goodsId){
        return  service.goodsSize(goodsId);
    }
}
